package com.vitae.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2018/5/15.
 */
@Data
@NoArgsConstructor
@TableName("user")
public class User{
    /*主键id  自增*/
    private Integer id;
    /*用户名称 NOT NULL*/
    private String userName;
    /*用户密码 NOT NULL*/
    private String userPwd;
    /*创建时间 NOT NULL*/
    private Date createDate;
    /*更新时间 DEFAULT NULL*/
    private Date updateDate;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                '}';
    }

}
